body {
    overflow: hidden;
    background-image: url(digital-painting-mountain-with-colorful-tree-foreground.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    margin: 0;
    padding: 0;
}

h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2%;
    color: rgb(0, 255, 190);
    text-shadow: 2px 2px 2px orangered;
    border-bottom: 2px solid rgb(255, 136, 0);
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#button1,
#button2,
#button3 {
    padding: 0.55% 2%;
    margin-top: 10%;
    background: -webkit-linear-gradient(rgb(255, 0, 55), rgb(0, 255, 128));
    border: 2px solid orangered;
    border-radius: 15px;
    color: rgb(50, 0, 97);
    text-shadow: 1px 1px 1px rgb(184, 171, 171);
    font-weight: bolder;
    font-size: 18px;
    transition: 250ms ease-in-out;
}

#button1:hover,
#button2:hover,
#button3:hover {
    transition: 375ms ease-in;
    background: -webkit-linear-gradient(rgb(0, 219, 73), rgb(255, 136, 0));
    border: 2px solid darkblue
}

#menu {
    width: 90%;
    height: 49%;
    position: absolute;
    top: 23%;
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
    border-radius: 20px;
    border: 1px solid rgb(255, 0, 0);
    display: none;
}

.menu2 {
    padding: auto auto;
}

.menu3 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 12%;
    row-gap: 57.5%;
    justify-content: center;
    align-items: center;
    padding: 2%;
}

#text {
    margin-left: 0.75%;
    margin-left: 0.75%;
    margin-top: 2%;
    font-size: 18px;
}

#text2 {
    margin-left: 0.75%;
    margin-left: 0.75%;
    margin-top: 7%;
    font-size: 18px;
}

#menu4 {
    width: 75%;
    height: 35%;
    position: absolute;
    top: 30%;
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
    border-radius: 20px;
    border: 1px solid orangered;
    display: none;
}

#menu5 {
    width: 28%;
    height: 21.5%;
    text-align: center;
    position: absolute;
    top: 37%;
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
    border-radius: 20px;
    border: 1px solid orangered;
    display: none;
    z-index: 2;
}

#newbutton {
    display: none;
    z-index: 3;
    position: absolute;
    top: 68%;
    left: 46.85%;
    width: 5%;
    border-radius: 10px;
    border-color: darkcyan;
    background: -webkit-linear-gradient(rgb(0, 114, 114), rgb(18, 54, 255));
    color: rgb(255, 255, 255);
    transition: 200ms ease-in-out;
}

#newbutton2 {
    display: none;
    z-index: 3;
    position: absolute;
    top: 61%;
    left: 48%;
    width: 5%;
    border-radius: 10px;
    border-color: darkcyan;
    background: -webkit-linear-gradient(rgb(0, 114, 114), rgb(18, 54, 255));
    color: rgb(255, 255, 255);
    transition: 200ms ease-in-out;
}

#newbutton3 {
    display: none;
    z-index: 3;
    position: absolute;
    top: 54.5%;
    left: 47.35%;
    width: 5%;
    border-radius: 10px;
    border-color: darkcyan;
    background: -webkit-linear-gradient(rgb(0, 114, 114), rgb(18, 54, 255));
    color: rgb(255, 255, 255);
    transition: 200ms ease-in-out;
}



#newbutton:hover,
#newbutton2:hover,
#newbutton3:hover {
    transition: 210ms ease-out;
    border-color: rgb(255, 82, 39);
    background: -webkit-linear-gradient(rgb(255, 0, 0), rgb(255, 68, 11));
}

a {
    color: white;
    text-decoration: none;
    transition: 220ms color linear;
}

a:hover {
    color: orangered;
    text-shadow: 1px 1px 1px darkred;
    transition: 230ms color linear;
}

#turning {
    background-color: rgba(17, 17, 17, 0.685);
    position: absolute;
    top: 0.2%;
    right: -60%;
    width: 10%;
    height: 96%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    border: 0.5pt solid rgba(241, 25, 25, 0.788);
    border-right: 0px;
    border-left: 1px solid rgba(255, 0, 0, 0.904);
}

ul li {
    list-style: none;
    z-index: 2;
}

ul li button {
    background-color: transparent;
    border: none;
    color: red;
    padding: 1%;
    display: flex;
    flex-direction: column;
    margin-top: 35%;
}

#turnon {
    position: absolute;
    top: 3.21%;
    right: 4.5%;
    background-color: transparent;
    border: none;
    color: red;
    z-index: 2;
}

#nastavení {
    width: 85%;
    height: 70%;
    position: absolute;
    top: 20%;
    background-color: rgba(0, 0, 0, 0.76);
    border-radius: 12px;
    display: none;
}

#closeOption {
    color: red;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0.75%;
    right: 0.75%;
}

#closeOption:hover {
    top: 0.8%;
    right: 0.8%;
    transform: scale(1.15)
}

#nastavení p {
    display: inline;
    padding-left: 13%;
    position: relative;
    left: 3%;
    top: 5%;
    color: white;
}

#potvrzeni {
    width: 14%;
    height: 5%;
    position: absolute;
    top: 15%;
    left: 42%;
    background-color: red;
    color: white;
    border-color: rgb(233, 217, 217);
    border-width: 2px;
    border-radius: 2px;
    font-size: 18px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-family: 'Montserrat', sans-serif;
    transition: 150ms ease-in;
}

#potvrzeni:hover {
    font-weight: 600;
    transition: 150ms ease-out;
    border-color: white;
    font-size: 18.5px;
    border-width: 2.5px;
}

#checkboxes {
    position: absolute;
    top: 25%;
    left: 8%;
    display: grid;
    grid-template-columns: repeat(4, 4fr);
    row-gap: 50%;
    column-gap: 170%;
}

#checkboxes p {
    display: flex;
    flex-direction: row;
    padding-left: 10%;
    color: white;
}

.radios {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 2%;
    left: 12%;
}

#styly {
    display: none;
}

#stylydiv {
    width: 70%;
    height: 70%;
    position: absolute;
    top: 20%;
    background-color: rgba(0, 0, 0, 0.76);
    border-radius: 12px;
    display: none;
}

#stylydiv #images {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}

.zarovnani {position: relative;
display: flex;
justify-content: center;
align-items: center;}

.photos {
    display: flex;
        gap: 3%;
    position: absolute;
    top: 65%;
    left: 45%;
    transform: translate(-50%, -50%);

}

#stylydiv #images img{
    width: 170px;
    height: 80px;
    margin-top: 30%;
    background-size: 120%, 120%;
    z-index: 2;
    border: 1px solid white;
}

.photos img {
    width: 200px;
    height: 95px;
    margin-top: 30%;
    background-size: 120%, 120%;

    z-index: 2;
    border: 1px solid white;
}

#overlay1 {
    background-color: transparent;
    color: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    position: absolute;
    top: 24%;
    left: 35.2%;
    width: 170px;
    height: 80px;
    background-size: 120%, 120%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

#overlay1:hover {
    background-image: -webkit-radial-gradient(transparent, transparent, rgb(0, 0, 0));
    color: rgb(0, 0, 0)
}

#overlay2 {
    background-color: transparent;
    color: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    position: absolute;
    top: 56.5%;
    left: 35.2%;
    width: 170px;
    height: 80px;
    background-size: 120%, 120%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

#overlay2:hover {
    background-image: -webkit-radial-gradient(transparent, transparent, rgb(0, 0, 0));
    color: rgb(0, 0, 0)
}

#overlay3 {
    background-color: transparent;
    color: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    position: absolute;
    top: 91%;
    left: 35.2%;
    width: 170px;
    height: 80px;
    background-size: 120%, 120%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

#overlay3:hover {
    background-image: -webkit-radial-gradient(transparent, transparent, rgb(0, 0, 0));
    color: rgb(0, 0, 0)
}


@media screen and (max-width: 1500px) {
    body {
        background-size: 110%;
    }

    #checkboxes {
        position: absolute;
        top: 25%;
        left: 22%;
        display: grid;
        grid-template-columns: repeat(3, 3fr);
        row-gap: 50%;
        column-gap: 190%;
    }
   

   .menu3 {grid-template-columns: repeat(5, 1fr);
row-gap: 50%;
column-gap: 15%}
}

@media screen and (max-width: 1300px) {
    body {
        background-size: 130%;
    }

    #potvrzeni {
        width: 18%;
        left: 44%;
    }

    #checkboxes {
        position: absolute;
        top: 25%;
        left: 15%;
        display: grid;
        grid-template-columns: repeat(3, 3fr);
        row-gap: 50%;
        column-gap: 190%;
    }
    #text2 {margin-top: 4%;}
    #menu5 {width: 40%;}
}

@media screen and (max-width: 1100px) {
    body {
        background-size: 170%;
    }

    h1 {
        font-size: 24px;
    }

    #turnon {
        top: 1.7%;
    }


    #checkboxes {
        position: absolute;
        top: 25%;
        left: 15%;
        display: grid;
        grid-template-columns: repeat(3, 3fr);
        row-gap: 50%;
        column-gap: 150%;
    }

    #potvrzeni {
        width: 20%;
        left: 40%;
    }
        .menu3 {
            grid-template-columns: repeat(4, 1fr);
            margin-left: 2%;
            column-gap: 10%;
        }

        #newbutton, #newbutton2, #newbutton3 {width: 10%;
        margin-left: -2%;}

                 
        
                 #menu5 {
                     width: 45%;
                 }
}

@media screen and (max-width: 900px) {
    body {
        background-size: 220% 333%;
        z-index: 0;
    }

    h1 {
        color: rgb(0, 255, 106)
    }

    ul li button {
        margin-top: 75%;
    }

    #checkboxes {
        position: absolute;
        top: 25%;
        left: 10%;
        display: grid;
        grid-template-columns: repeat(3, 3fr);
        row-gap: 50%;
        column-gap: 120%;
    }

    #potvrzeni {
        width: 25%;
    }

        .menu3 {
            grid-template-columns: repeat(4, 1fr);
            column-gap: 2%;
           margin-left: 10%;
        }
#styly {
    display: flex;
}

.photos {
    display: none;
}
        
}

@media screen and (max-width: 700px) {
    body {
        background-size: 300% 370%;
    }

    #checkboxes {
        position: absolute;
        top: 30%;
        left: 25%;
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        row-gap: 30%;
        column-gap: 150%;
    }

    #potvrzeni {
        width: 50%;
        top: 20%;
        left: 27%;
    }

    
         #menu5 {
             width: 65%;
         }
}

@media screen and (max-width: 600px) {
    .radios {
        width: 250px;
        left: 15%;
    }
 .menu3 {
     grid-template-columns: repeat(5, 1fr);
     column-gap: 1%;
margin-left: 5%;
 }
 #menu5 {
     width: 75%;
 }
 #overlay1, #overlay2, #overlay3 {left: 45.2%;}
 #overlay1 {top: 23%;}
 #overlay2 {
     top: 55%;
 }
 #overlay3 {
     top: 90%;
 }
}

@media screen and (max-width: 500px) {
    body {
        background-size: 320% 475%;
    }

    h1 {
        font-size: 15px;
    }

    #turnon {
        top: 0.5%;
        right: 4%;
        transform: scale(0.9);
    }

    #checkboxes {
        position: absolute;
        top: 40%;
        left: 22%;
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        row-gap: 30%;
        column-gap: 120%;
    }

    #potvrzeni {
        width: 60%;
        top: 32%;
        left: 20%;
    }
        #newbutton,
        #newbutton2,
        #newbutton3 {
            width: 20%;
            margin-left: -8%;
        }
                #menu5 {
                    width: 95%;
                }

                #menu5 #text {font-size: 14px;}
                                 #menu5 #text2 {
                                        font-size: 15px;
                                    }
                                    #menu4 #text{font-size: 16px;}
                                    #menu4 {height: 40%;}
                                    #newbutton2 {margin-top: 13%;
                                    width: 21%;}
                                                                        #overlay1,
                                                                        #overlay2,
                                                                        #overlay3 {
                                                                            left: 50%;
                                                                        }
                                                                        #overlay1 {top: 22.5%;}
                                                                        #overlay3{top:89%;}
} 
@media screen and (max-width: 400px) {#checkboxes {left: 12%;}
#stylydiv {width: 92%;}}

@media screen and (max-width: 300px) {
    h1 {
        margin-right: 20px;
    }

    #turnon {
        top: 0.5%;
        right: 0.5%;
        transform: scale(0.7);
    }
         .menu3 {
             grid-template-columns: repeat(3, 1fr);
             column-gap: 2%;
    row-gap: 10%;
         }

    #checkboxes {
        position: absolute;
        top: 43%;
        left: 35%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        row-gap: 1%;
        column-gap: 120%;
    }

    #potvrzeni {
        left: 10%;
        width: 85%;
    }
        #menu5 {
            width: 98%;
        }
                #menu4 #text {
                    font-size: 15px;
                }
        
                #menu4 {
                    height: 45%;
                }
        
                #newbutton2 {
                    margin-top: 35%;
                }
}